﻿using BUGCOME.Model.Common;
using BUGCOME.Model.Common.dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Service.Common.IServices
{
    /// <summary>
    /// 语言服务接口，继承基础服务接口
    /// </summary>
    public interface ILangService : IBaseService<Lang>
    {
        /// <summary>
        /// 分页获取语言列表
        /// </summary>
        Task<PagedInfo<Lang>> GetListAsync(LangQueryDto parm);

        /// <summary>
        /// 获取语言列表
        /// </summary>
        Task<List<Lang>> GetLangListAsync(LangQueryDto parm);

        /// <summary>
        /// 获取列表数据（透视表形式）
        /// </summary>
        Task<dynamic> GetListToPivotAsync(LangQueryDto parm);

        /// <summary>
        /// 存储语言信息
        /// </summary>
        Task StorageLangAsync(LangDto parm);

        /// <summary>
        /// 设置语言信息
        /// </summary>
       Dictionary<string, object> SetLang(List<Lang> msgList);

        /// <summary>
        /// 导入语言数据
        /// </summary>
        Task<(string, object, object)> ImportLangAsync(List<Lang> list);
    }
}
